export default [
  {
    path: '/system',
    leaf: false,
    hidden: false,
    icon: '3-0-icon.png',
    name: '系统管理',
    component: resolve => (require(['../../frame/frame.vue'], resolve)),
    meta: {powerId: '3'},
    children: [{
      path: '/system/user',
      name: '用户管理',
      icon: '3-1-icon.png',
      hidden: false,
      component: (resolve) => require(['../../frame/blank.vue'], resolve),
      meta: {powerId: '7'},
      children: [{
        path: '/system/user/list',
        name: '',
        component: (resolve) => require(['../../pages/system/userList.vue'], resolve),
        meta: {powerId: '7'}
      }, {
        path: '/system/user/edit',
        name: '修改用户信息',
        component: (resolve) => require(['../../pages/system/userEdit.vue'], resolve)
      }]
    }, {
      path: '/system/role',
      name: '角色管理',
      icon: '3-2-icon.png',
      hidden: false,
      component: (resolve) => require(['../../frame/blank.vue'], resolve),
      meta: {powerId: '8'},
      children: [{
        path: '/system/role/list',
        name: '',
        component: (resolve) => require(['../../pages/system/roleList.vue'], resolve),
        meta: {powerId: '8'}
      }, {
        path: '/system/role/edit',
        name: '新建角色',
        component: (resolve) => require(['../../pages/system/roleEdit.vue'], resolve)
      }, {
        path: '/system/role/preview',
        name: '查看角色',
        component: (resolve) => require(['../../pages/system/rolePreview.vue'], resolve)
      }]
    }]
  }
]
